package com.second.entity;

import java.util.ArrayList;
import java.util.List;

public class PageBean<T> {
	
	private int page;

	private int code=5;
	
	private int tpage;
	
	private int tcode;
	
	private List<T> list=new ArrayList<T>();
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public int getTcode() {
		return tcode;
	}
	public void setTcode(int tcode) {
		this.tcode = tcode;
	}
	public List<T> getList() {
		return list;
	}
	public void setList(List<T> list) {
		this.list = list;
	}
	public int  getTpage(){
		if(tcode % code==0){
			return tcode/code;
		}else{
			return tcode/code +1;
		}
	}
	

}
